// openid存储在本地存储中
const openid = wx.getStorageSync('openid');
const lableAll =
    [
    //     {
    //     id: 1,
    //     joinCluster: true,
    //     latitude: 31.492385,
    //     longitude: 104.686100,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位1",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // }, {
    //     id: 2,
    //     joinCluster: true,
    //     latitude: 31.490715,
    //     longitude: 104.685080,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位2",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // }, {
    //     id: 3,
    //     joinCluster: true,
    //     latitude: 31.489501,
    //     longitude: 104.685999,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位3",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // }, {
    //     id: 4,
    //     joinCluster: true,
    //     latitude: 31.488699,
    //     longitude: 104.687900,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位4",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // }, {
    //     id: 5,
    //     joinCluster: true,
    //     latitude: 31.489455,
    //     longitude: 104.688450,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位5",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // }, {
    //     id: 6,
    //     joinCluster: true,
    //     latitude: 31.490900,
    //     longitude: 104.68850,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位6",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // }, {
    //     id: 7,
    //     joinCluster: true,
    //     latitude: 31.492030,
    //     longitude: 104.688460,
    //     name: 'Ibeacon02',
    //     // label:{},
    //     width: 25,
    //     height: 25,
    //     label: {
    //         content: "点位7",
    //         bgColor: "#ffffff",
    //         color: "#0597ff",
    //         padding: 3,
    //         display: "ALWAYS",
    //         borderRadius: 3,
    //         anchorX: -11.8,
    //         anchorY: -50,
    //         textAlign: 'center'
    //     },1q
    //     // iconPath: '../../icon/Ibeacon.png',
    //     iconPath: '../../icon/test.gif',
    // },


        {
            id: 8,
            joinCluster: true,
            latitude: 31.472019416132454,
            longitude: 104.69658628106114,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位111111",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 9,
            joinCluster: true,
            latitude: 31.47311976607527,
            longitude: 104.69666540622711,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位2",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 10,
            joinCluster: true,
            latitude: 31.474168632304856,
            longitude: 104.69703018665312,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位3",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 11,
            joinCluster: true,
            latitude: 31.474161769532405,
            longitude: 104.69788044691086,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位4",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 12,
            joinCluster: true,
            latitude: 31.473029405184956,
            longitude: 104.69933554530141,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位5",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 13,
            joinCluster: true,
            latitude: 31.471879869789223,
            longitude: 104.69983980059621,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位6",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 14,
            joinCluster: true,
            latitude: 31.470876731346475,
            longitude: 104.69948977231977,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位7",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 15,
            joinCluster: true,
            latitude: 31.47105516952945,
            longitude: 104.6991357207298,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位8",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
        {
            id: 16,
            joinCluster: true,
            latitude: 31.470869868332656,
            longitude: 104.69845712184902,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "公园点位9",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            // iconPath: '../../icon/Ibeacon.png',
            iconPath: '../../icon/test.gif',
        },
    ]


function getAllLable() {
    return lableAll;
}

function getRandomCheckpoint() {
    const randomIndex = Math.floor(Math.random() * lableAll.length);
    return lableAll[randomIndex];
}

module.exports = {
    getAllLable: getAllLable
}
